﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ExcelReport
{
    public class ConfigToContent
    {
        public ExcelCell ToCell(FormConfigContent formConfig)
        {
            string tempString = formConfig.ToCell.Substring(0,1);
            ExcelCell excelCell = new ExcelCell(Convert.ToInt32(formConfig.ToCell.Substring(1,1)), ExportHelper.ColStringToNum(tempString),formConfig.FormatString());
            return excelCell;
        }
    }
}
